package com.app.GoCuro.data;

public class DatabaseItem 
{
	private String barcodeId;
	private String employeeName;
	private String jobsiteName;
	private String quantity;
	private String updateTime;
	private String itemName;
	
	public DatabaseItem(String barcodeId, String employeeName, String jobsiteName, String quantity, String updateTime, String itemName)
	{
		this.barcodeId = barcodeId;
		this.employeeName = employeeName;
		this.jobsiteName = jobsiteName;
		this.quantity = quantity;
		this.updateTime = updateTime;
		this.itemName = itemName;
	}
	
	public String getBarcode()
	{
		return barcodeId;
	}

	@Override 
	public String toString()
	{
		return itemName + "\n" +
				"Qty: " + quantity + "\n" +
				"Barcode: " + barcodeId + "\n" +
				"Jobsite: " + jobsiteName + "\n" +
				"Scanned by: " + employeeName + "\n" +
				"Last Update: " + updateTime + "\n";
	}
}
